package cn.suxiaoxiang.suwebverify.events;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.server.PluginDisableEvent;

import static cn.suxiaoxiang.suwebverify.events.PlayerJoin.PLAYER_SESSIONS;

/**
 * PluginDisableListener - 插件关闭事件
 *
 * @author 程序员-Su_xiaoxiang
 * @date 2025/4/7 20:55
 */
public class PluginDisableListener implements Listener {

    @EventHandler
    public void onPluginDisable(PluginDisableEvent event) {
        // 清空所有玩家的登录状态
        PLAYER_SESSIONS.clear();
    }
}